package com.admin4j.server.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 资源权限表
 * </p>
 *
 * @author andanyang
 * @since 2023-12-19
 */
@Getter
@Setter
@TableName("sys_permission")
@ApiModel(value = "SysPermission对象", description = "资源权限表")
public class SysPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("资源id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("资源code")
    private String permissionCode;

    @ApiModelProperty("资源uri")
    private String uri;

    @ApiModelProperty("http 方法; 0 全部 1    GET,2    HEAD,3    POST,4    PUT,5    PATCH,6    DELETE,7    OPTIONS,8   TRACE;")
    private Integer httpMethod;

    @ApiModelProperty("分类id")
    private Integer categoryId;

    @ApiModelProperty("简介")
    private String description;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updatedTime;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty("更新人")
    private String updatedBy;
}
